#ifndef MUSIC_H
#define MUSIC_H

#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui { class Music; }
QT_END_NAMESPACE

class Music : public QWidget
{
    Q_OBJECT

public:
    Music(QWidget *parent = nullptr);
    ~Music();
    //初始化工作
    void init();
    //信号与槽函数相关联
    void connectSingalAndSlot();


private:
    //槽函数——关联ButtonForm发出的信号，实现page的切换
    void onBtFormClick(int PageID);


protected:
    //重写鼠标移动和鼠标按下事件
    void mouseMoveEvent(QMouseEvent *event) override;
    void mousePressEvent(QMouseEvent *event) override;


private slots:
    void on_quit_clicked();

private:
    Ui::Music *ui;

    QPoint dragPosition;//鼠标与widget的相对位置
};
#endif // MUSIC_H
